package com.jiuyin.dianjing.ui.fragment.main;

import android.util.Pair;

import com.jiuyin.dianjing.R;
import com.jiuyin.dianjing.ui.fragment.base.BaseTabFragment;
import com.jiuyin.dianjing.ui.fragment.third.FragmentThirdInner;

import java.util.List;

import static com.jiuyin.dianjing.api.constant.ApiConstant.VALUE_TYPE_ATTENTION;
import static com.jiuyin.dianjing.api.constant.ApiConstant.VALUE_TYPE_HOT;

/**
 * 主界面(社区)
 */
public class FragmentThird extends BaseTabFragment<Void> {
    @Override
    protected int setLayoutId() {
        return R.layout.fragment_third;
    }

    @Override
    protected void initView() {
        addData(null);
    }

    @Override
    public void fetchData() {

    }

    @Override
    protected void addFragments(List<Void> list) {
        mFragments.add(Pair.create(getString(R.string.third_text_nav_first), FragmentThirdInner.newInstance(VALUE_TYPE_HOT)));
        mFragments.add(Pair.create(getString(R.string.third_text_nav_second), FragmentThirdInner.newInstance(VALUE_TYPE_ATTENTION)));
    }
}
